-
Notifications
You must be signed in to change notification settings - Fork 297
Ordering Service: on request proposal strategy #2215
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: Fedor Muratov <[email protected]>
Signed-off-by: Fedor Muratov <[email protected]>
Signed-off-by: Fedor Muratov <[email protected]>
Signed-off-by: Fedor Muratov <[email protected]>
Signed-off-by: Fedor Muratov <[email protected]>
Signed-off-by: Fedor Muratov <[email protected]>
Signed-off-by: Fedor Muratov <[email protected]>
Signed-off-by: Fedor Muratov <[email protected]>
Signed-off-by: Fedor Muratov <[email protected]>
Signed-off-by: Fedor Muratov <[email protected]>
*/ | ||
|
||
#ifndef IROHA_KICK_OUT_PROPOSAL_CREATION_STRATEGY_HPP | ||
#define IROHA_KICK_OUT_PROPOSAL_CREATION_STRATEGY_HPP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IROHA_SUPER_KICK_OUT_MEGA_PROPOSAL_ULTRA_CREATION_STRATEGY_9000_HPP
:D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you suggest a more appropriate name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, It was not an issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Summon @MBoldyrev
shared_model::validation::Answer answer; | ||
answer.addReason(std::move(reason)); | ||
if (answer.hasErrors()) { | ||
log_->error("Peer key struct isn't parsed, {}", answer.reason()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log_->error("Peer key struct isn't parsed, {}", answer.reason()); | |
log_->error("Peer key struct was not parsed, {}", answer.reason()); |
std::shared_ptr<MockTransactionBatchFactory> batch_factory; | ||
std::shared_ptr<OnDemandOsServerGrpc> server; | ||
consensus::Round round{1, 2}; | ||
}; | ||
|
||
/** | ||
* Separate action required because CollectionType is non-copyable | ||
* Separate action required because CollectionType is non-copy1able |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Separate action required because CollectionType is non-copy1able | |
* Separate action required because CollectionType is non-copyable |
looks like a typo
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
Signed-off-by: Andrei Lebedev <[email protected]>
@@ -19,6 +19,12 @@ namespace iroha { | |||
agreed, all, detail::kSupermajorityCheckerKfPlus1Bft); | |||
} | |||
|
|||
bool SupermajorityCheckerBft::hasMajority(PeersNumberType voted, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline: need to rename the method
Description of the Change
The initial intention of the PR is to introduce a strategy for preventing the creation of proposals in OS. But this pr contains dependent changes for the proper working of the strategy.
Benefits
Add round optimization for faster collaboration. Also, Closer to release state.
Possible Drawbacks
A lot of different features which introduce in one PR
List of features
Alternate Designs [optional]
The transport layer is not backward compatible - introduces peer key of the sending side. There is an alternative with meta information in the request.
Drawback
The PR doesn't work because it is blocked by hyperledger-iroha/iroha#2066.